package com.zm.zmgz.pojo;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: cjw
 * @Date: 2020/04/06/19:47
 * @Description:static变量,进程内共享数据,为日志记录提高用户名和ip字段数据;
 * 再请求拦截器中被赋值,再mybatis拦截器中被使用
 */
public  class UserNameAndIpBean {

    public static String userName;

    public static String IP;

    public static String getUserName() {
        return userName;
    }

    public static void setUserName(String userName) {
        UserNameAndIpBean.userName = userName;
    }

    public static String getIP() {
        return IP;
    }

    public static void setIP(String IP) {
        UserNameAndIpBean.IP = IP;
    }

    public static String toString2() {
        return "UserNameAndIpBean{userName:"+userName+",IP:"+IP+"}";
    }
}
